package com.david.reader.txt

import androidx.room.*

@Dao
abstract interface TxtPageDao {
    @Insert
    fun insertPage(student: TxtPage?)

    @Delete
    fun deletePage(student: TxtPage?)

    @Update
    fun updatePage(student: TxtPage?)

    @Query("SELECT * FROM txt_pages")
    fun getPageList(): List<TxtPage?>?

    @Query("SELECT * FROM txt_pages WHERE page = :page")
    fun getContentByPage(page: Int): TxtPage?
}